//
//  ChatViewController.h
//  NewChat
//
//  Created by boleguigu_dev1 on 16/5/13.
//  Copyright © 2016年 宁波伯乐硅谷网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DBMessage+CoreDataClass.h"
#import "ChatTableViewCell.h"

@protocol ChatViewControllerDelegate <NSObject>
@optional
-(void)ChatViewControllerDidSendLocation;
-(void)ChatViewControllerMapViewDidSelect:(DBMessage *)message;

-(void)loginHeadImageViewDidTap;
-(void)targetHeadImageViewDidTap;
@end

@interface BaseChatViewController : UIViewController

@property (nonatomic,weak)id<ChatViewControllerDelegate>delegate;
@property (nonatomic,strong)UIColor *navigationBarTintColor;
@property (nonatomic,strong)UIColor *navigationtintColor;
@property (nonatomic,copy)NSString *navigationBarbackBarButtonItemTitle;
@property (nonatomic,strong)UIImage *navBackImage;

@property (nonatomic,strong)NSNumber *target_user_id;//对方id
@property (nonatomic,copy)NSString *target_user_head_image_path;
@property (nonatomic,copy)NSString *target_user_name;

@property (nonatomic,assign)BOOL isLocationHidden;//yes为隐藏

-(void)sendLocationWithImage:(UIImage *)image longitude:(CGFloat)longitude latitude:(CGFloat)loatitude address:(NSString *)address;

@end
